package func.impl;

import entity.Employee;
import func.FuncPredicate;

/**
 * Created by VincentZee on 2019/3/2
 */
public class FilterEmployeeByAge implements FuncPredicate<Employee> {

    @Override
    public boolean test(Employee employee) {
        return employee.getAge() < 35;
    }
}
